<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

?>

<!-- 审核界面 -->
<div class="text-center">
<hr>
<?php
	if($model->type == 1){ //	收款
		if($role == "财务"){
		//	if($model->status == 1 ){ // 提交审核   2017-12-22 修改
			if($model->status == 1 || $model->status == 2){ // 提交审核
?>
				<?php $form = ActiveForm::begin(['action' => 'status']); ?>
					<input type="hidden" name="id" value="<?= $model->id ?>" >
					<?= \yii\helpers\Html::radioList("status", 3, [3=>'通过', 5=>'拒绝'], []) ?>
					<button type="submit" class="btn btn-warning">财务审核</button>
				<?php ActiveForm::end(); ?>
<?php
			}else{
				echo sprintf("<div class='text-center'><h3 >%s</h3></div>", Yii::$app->params['finance_status'][$model->status] );
			}
		}
	}
?>
</div>
